﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities.System;
using Framework;
using DataAccess.SQL;
using System.Data;

namespace BLL.Common
{
    public class FactoryBO : BusinessBase
    {
        public List<Factory> GetFactory()
        {
            string sql = "Select FAC_KEY,FACTORY_ID,FACTORY_NAME FROM "
                       + "SBRM_FACTORY ORDER BY FACTORY_ID";
            List<Factory> lst = SqlHelper.ExecuteList<Factory>(sql, CommandType.Text);
            return lst;
        }
    }
}
